package com.surfin.safe.keyboard;

import com.module.safe.keyboard.R;

/**
 * 安全键盘配置
 */
public class SafeKeyboardConfig {

    public static int DEFAULT_RES_ID_ICON_DEL = R.drawable.icon_del;

    public static int DEFAULT_RES_ID_ICON_LOW_LETTER = R.drawable.icon_capital_default;
    public static int DEFAULT_RES_ID_ICON_UP_LETTER = R.drawable.icon_capital_selected;
    public static int DEFAULT_RES_ID_ICON_UP_LETTER_LOCK = R.drawable.icon_capital_selected_lock;
    public static int DEFAULT_RES_ID_SPECIAL_KEY_BG = R.drawable.keyboard_change_trans;
    public static int DEFAULT_LAYOUT_ID_KEYBOARD_CONTAINER = R.layout.layout_keyboard_container;
    public static int DEFAULT_SAFE_KEYBOARD_VIEW_ID = R.id.safeKeyboardViewId;
    public static int DEFAULT_KEYBOARD_TITLE_TEXT_COLOR = R.color.white;
    public static int DEFAULT_KEYBOARD_DONE_IMG_RES_ID = R.drawable.keyboard_done_img;

    public static long DEFAULT_SHOW_TIME = 50;
    public static long DEFAULT_HIDE_TIME = 150;
    public static long DEFAULT_DELAY_TIME = 50;
    public static long DEFAULT_SHOW_DELAY = 50;

    public static String DEFAULT_KEYBOARD_TITLE_TEXT = "安全软键盘";
    public static int DEFAULT_RES_ID_KEYBOARD_SHIELD_IMG = R.drawable.shield;

    // 删除键资源id
    public int iconResIdDel = DEFAULT_RES_ID_ICON_DEL;

    // 小写字母键资源id
    public int iconResIdLowLetter = DEFAULT_RES_ID_ICON_LOW_LETTER;

    // 大写字母键资源id
    public int iconResIdUpLetter = DEFAULT_RES_ID_ICON_UP_LETTER;

    // 大写字母键锁定资源id
    public int iconResIdUpLetterLock = DEFAULT_RES_ID_ICON_UP_LETTER_LOCK;

    // 特殊按键背景资源id(删除键，切换大小写键等)
    public int keyboardSpecialKeyBgResId = DEFAULT_RES_ID_SPECIAL_KEY_BG;

    // 键盘显示样式布局资源id
    public int keyboardContainerLayoutId = DEFAULT_LAYOUT_ID_KEYBOARD_CONTAINER;

    // SafeKeyboardView id
    public int safeKeyboardViewId = DEFAULT_SAFE_KEYBOARD_VIEW_ID;

    // 纯数字键盘界面左下角按键
    public String keyboardNumOnlyKeyNoneTitle = "";

    // 按键提示上方正中提示文字
    public String keyboardTitle = DEFAULT_KEYBOARD_TITLE_TEXT;

    // 按键提示上方正中安全图标资源id
    public int keyboardShieldImgResId = DEFAULT_RES_ID_KEYBOARD_SHIELD_IMG;

    // 按键提示上方正中提示文字颜色
    public int keyboardTitleColor = DEFAULT_KEYBOARD_TITLE_TEXT_COLOR;

    // 键盘顶部右侧隐藏键盘的图片按键
    public int keyboardDoneImgResId = DEFAULT_KEYBOARD_DONE_IMG_RES_ID;

    // 键盘显示出来的时间
    public long showDuration = DEFAULT_SHOW_TIME;

    // 键盘隐藏出来的时间
    public long hideDuration = DEFAULT_HIDE_TIME;

    // 键盘延迟显示的时间
    public long showDelay = DEFAULT_DELAY_TIME;

    // 键盘延迟隐藏的时间
    public long hideDelay = DEFAULT_SHOW_DELAY;

    // 字母键盘是否包含数字
    public boolean letterWithNumber = false;

    // 是否非法环境输入检测
    public boolean illegalEnvironmentDetect = true;

    // 是否加密显示
    public boolean encryptedDisplay = false;

    public static SafeKeyboardConfig getDefaultConfig() {
        return new SafeKeyboardConfig();
    }
}
